package cn.ffcs.uec.post.dao;

import cn.ffcs.uec.post.model.UecPost;
import cn.ffcs.uec.post.vo.BasePostVo;
import cn.ffcs.uom.common.dao.BaseDao;
import cn.ffcs.uom.common.vo.PageInfo;

public interface UecPostDao extends BaseDao {

	public PageInfo queryPageInfoByUecPost(UecPost uecPost,
			int current, int pageSize);
	
	public UecPost queryUecPost(UecPost uecPost);
	
	/**
	 * 根据岗位查询出该岗位的基准岗位
	 * @param uecPost
	 * @return
	 */
	public UecPost queryBasePostByUecPost(UecPost uecPost);
	
	public String getUecPostNameByPkPost(String pkPost);
	
	/**
	 * 
	 * @param pkPost
	 * @return
	 */
	public String getUecPostNameByPkBostPost(String pkBastPost);
	/**
	 * 找上级基准岗位
	 * @param code
	 * @return
	 */
	public BasePostVo getPreviousBasePostByCode(String code);
	/**
	 * 根据岗位编码，找到该岗位的上级编码
	 */
	public String getPreviousCodeByCode(String code);
	
	/**
	 * 根据岗位编码，查出该岗位对象，方便获取岗位主键
	 */
	public UecPost getPkPostByCode(String code);
	
	
	
}
